shell redirects
stdout, stderr の両方を file にだけ出力する
画面に出力はしない
command > example.log 2>&1
command > example.log
example.log に出力
2>&1
stderr を stdout にまとめる
stderr に出力
echo hoge erro message >&2
stderr だけをリダイレクト
sh eg.sh 2>> err.log
両方握りつぶす
>/dev/null 2>&1
<word